package com.whc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 韦红材
 * @ClassName Goods
 * @data 2024/10/22 15:38
 * @Version V1.0
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("商品实体类")
public class Goods implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 分类id
     */
    private long categoryId;
    private String categoryName;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 描述
     */
    private String description;
    /**
     * 商品名称
     */
    private String goodsName;
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private long id;
    /**
     * 价格
     */
    private String price;
    /**
     * 储量
     */
    private String reserves;
    /**
     * 修改时间
     */
    private LocalDateTime updateTime;
    private long userId;
    /**
     * 想要
     */
    private long wanters;

    private String lastPrice;
    //0表示正常售卖  1表示已卖光 2表示已下架
    private int type;
}
